package com.order.service;

import java.util.List;

import com.order.dao.BaseDao;
import com.order.entity.Goods;

public class GoodsService {
	
	/**
	 * 获取商品集合
	 * @return 商品集合
	 */
	@SuppressWarnings("unchecked")
	public List<Goods> getGoodsList() {
		BaseDao dao = new BaseDao();
		return (List<Goods>) dao.query("from Goods", null);
	}
}
